<?php

// Model:'BoMon' - Database Table: 'bo_mon'

Class BoMon extends Eloquent
{

    protected $table='bo_mon';

    public function canbo()
    {
        return $this->belongsToMany('CanBo');
    }
    public function detailuanvan()
    {
        return $this->belongsToMany('DeTaiLuanVan');
    }
    public function lop()
    {
        return $this->hasMany('Lop');
    }

    public function thongbao()
    {
        return $this->belongsToMany('ThongBao');
    }
    public function truongbomon()
    {
        return $this->hasMany('TruongBoMon');
    }

    public function khoa()
    {
        return $this->belongsTo('Khoa');
    }

}